﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.Flexibles.Images
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Drawing;
using System.Windows.Media;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.Flexibles;

public static class Images
{
  public static readonly ImageSource AddIconImage = Images.CreateImageFromKey("Plus", 16 /*0x10*/);
  public static readonly ImageSource RemoveIconImage = Images.CreateImageFromKey("Minus", 16 /*0x10*/);
  public static readonly ImageSource EditIconImage = Images.CreateImageFromKey("Edit", 16 /*0x10*/);
  public static readonly ImageSource AttachIconImage = Images.CreateImageFromKey("Attach", 16 /*0x10*/);
  public static readonly ImageSource InfoIconImage = Images.CreateImageFromKey("InfoColor", 16 /*0x10*/);
  public static readonly ImageSource ErrorIconImage = Images.CreateImageFromKey("ErrorColor", 16 /*0x10*/);
  public static readonly ImageSource WarningIconImage = Images.CreateImageFromKey("WarningColor", 16 /*0x10*/);
  public static readonly ImageSource LockIconImage = Images.CreateImageFromKey("Lock", 16 /*0x10*/);
  public static readonly TxImage CableCmdIcon = Images.CreateImageFromKey("CableEditor");
  public static readonly TxImage RegenerateCableCmdIcon = Images.CreateImageFromKey("RegenerateCable");
  public static readonly TxImage CableSettingsCmdIcon = Images.CreateImageFromKey("CableSettings");

  private static ImageSource CreateImageFromKey(string key, int size)
  {
    return TxImageManager.GetImageByKey(key).ConvertTo<ImageSource>(new Size(size, size));
  }

  private static TxImage CreateImageFromKey(string key) => TxImageManager.GetImageByKey(key);
}
